package com.wande.dataplatform.filecollection.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import com.wande.dataplatform.filecollection.domain.CollectionError;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 采集错误记录视图对象
 *
 * @author wande
 */
@Data
@AutoMapper(target = CollectionError.class)
public class CollectionErrorVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 任务ID
     */
    @ExcelProperty(value = "任务ID")
    private Long taskId;

    /**
     * 文件ID
     */
    @ExcelProperty(value = "文件ID")
    private Long fileId;

    /**
     * 记录索引
     */
    @ExcelProperty(value = "记录索引")
    private Integer recordIndex;

    /**
     * 错误类型
     */
    @ExcelProperty(value = "错误类型")
    private String errorType;

    /**
     * 错误信息
     */
    @ExcelProperty(value = "错误信息")
    private String errorMessage;

    /**
     * 记录数据
     */
    @ExcelProperty(value = "记录数据")
    private String recordData;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 文件名(扩展字段)
     */
    private String fileName;
}
